import request from '@/utils/request'

export function getUserList(token, params) {
  return request({
    url: '/system/user/list',
    method: 'post',
    data: params
  })
}

export function addUser(token, params) {
  return request({
    url: '/system/user/add',
    method: 'post',
    data: params
  })
}

export function searchUserByName(token, params) {
  return request({
    url: '/system/user/findUserByUser',
    method: 'post',
    data: params
  })
}

export function updateUser(token, params) {
  return request({
    url: '/system/user/update',
    method: 'post',
    data: params
  })
}

export function getSingleUser(token, params) {
  return request({
    url: '/system/user/selectByPrimaryKey',
    method: 'post',
    data: params
  })
}

export function deleteUser(token, params) {
  return request({
    url: '/system/user/delete',
    method: 'post',
    data: params
  })
}

